package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.NutritionPlan;

import java.util.List;

public interface NutritionPlanService {
    void add(NutritionPlan nutritionPlan);

    void update(NutritionPlan nutritionPlan);

    void delete(Integer id);
    void deleteByPatientId(Integer patientId);

    NutritionPlan findById(Integer id);

    List<NutritionPlan> findAll();

    Page<NutritionPlan> search(String search, int page, int size);
    Page<NutritionPlan> searchByPatientId(Integer patientId,String search, int page, int size);

}
